#include("layout.html")
#@layout()

<% if (htmlWebpackPlugin.files.css.length > 0) { %>
#define css()
<% for (var css in htmlWebpackPlugin.files.css) { %>
<link href="<%=htmlWebpackPlugin.files.css[css] %>" rel="stylesheet">
<% } %>
#end
<% } %>

<% if (Object.entries(htmlWebpackPlugin.files.chunks).length > 0) { %>
#define script()
<% for (var chunk in htmlWebpackPlugin.files.chunks) { %>
<script type="text/javascript" src="<%=htmlWebpackPlugin.files.chunks[chunk].entry %>"></script>
<% } %>
#end
<% } %>

#define content()
<div id="app"></div>
#end